﻿<Window x:Class="ColorPickerApp.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:my="clr-namespace:EagleBoost.Wpf.Presentation.Controls.ColorPicker;assembly=EagleBoost.Wpf.Presentation"
        Title="MainWindow" Height="304" Width="312">
  <Grid Margin="5">
    <Grid.RowDefinitions>
      <RowDefinition Height="Auto"/>
      <RowDefinition Height="Auto"/>
      <RowDefinition/>
    </Grid.RowDefinitions>
    <Grid.ColumnDefinitions>
      <ColumnDefinition Width="Auto"/>
      <ColumnDefinition/>
    </Grid.ColumnDefinitions>
    <TextBlock Text="Selected Color:" Margin="3"/>
    <Border Grid.Row="0" Grid.Column="1" Margin="3" BorderBrush="Gray" BorderThickness="1">
      <Label Background="{Binding SelectedBrush, ElementName=colorControl}" Height="30"/>
    </Border>
    <TextBlock Grid.Row="1" Grid.Column="0"  Text="Color Combo:" Margin="3"/>
    <my:ColorPickerComboBox Grid.Row="1" Grid.Column="1" x:Name="colorCombo"
                           SelectedColor="{Binding SelectedColor, ElementName=colorControl, Mode=TwoWay}" Margin="3"/>
    <TextBlock Grid.Row="2" Grid.Column="0"  Text="Color Control:" Margin="3"/>
    <my:ColorPickerControl Grid.Row="2" Grid.Column="1" Name="colorControl" 
                           SelectedColor="Red" Margin="3"/>
  </Grid>
</Window>
